import {ApiGET, ApiPOST} from "../utils/Request";

/**
 * 首页-职位列表
 */
export const jobList_data = (data: any) => ApiGET('/api/joblist', {...data})

/**
 * 职位详情
 */
export const jobDetail_data = (id: string) => ApiGET('/api/jobDetail', {job_id: id})


/**
 * 人才库
 */
export const members_data = (data: any) => ApiGET('/api/members', {...data})


/**
 * 岗位类型
 */
export const category_data = () => ApiGET('/api/category')


/**
 * HR详情页
 */
export const hrpage_data = (data: any) => ApiGET('/api/hrpage', {...data})

/**
 * 点击HR的头像，查看他发布的岗位
 */
export const jobListByHR_data = (data: any) => ApiGET('/api/jobListByHR', {...data})


/**
 * 岗位发布
 */
export const jobCreate_data = (data: any) => ApiPOST('/api/jobCreate', {...data})


/**
 * 岗位发布
 */
export const createCompany_data = (data: any) => ApiPOST('/api/createCompany', {...data})


/**
 * 查询能量价格
 */
export const getPrice_data = (data: any) => ApiGET('/api/getPrice', {...data})

/**
 * 获取人才或HR的联系方式
 */
export const getContact_data = (user_id: any) => ApiGET('/api/getContact', {user_id})

